package com.ruoyi.project.mydy.permovrelation.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 导演职员与电影关系映射对象 dl_permov_relation
 * 
 * @author mhg
 * @date 2021-10-07
 */
public class DlPermovRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 电影id */
    @Excel(name = "电影id")
    private Long movieId;

    /** 导演或演员id */
    @Excel(name = "导演或演员id")
    private Long perId;

    /** 在本片的身份 */
    @Excel(name = "在本片的身份")
    private Long adFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMovieId(Long movieId)
    {
        this.movieId = movieId;
    }

    public Long getMovieId()
    {
        return movieId;
    }
    public void setPerId(Long perId)
    {
        this.perId = perId;
    }

    public Long getPerId()
    {
        return perId;
    }
    public void setAdFlag(Long adFlag)
    {
        this.adFlag = adFlag;
    }

    public Long getAdFlag()
    {
        return adFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("movieId", getMovieId())
            .append("perId", getPerId())
            .append("adFlag", getAdFlag())
            .toString();
    }
}
